package com.imooc.imoocbilibili.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 视频评论表
 * 
 * @author jl
 * @since 2022-04-10 19:24:01
 */
@Data
@TableName("t_video_comment")
public class VideoComment implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 视频id
     */
    @TableField(value = "videoId")
    private Long videoid;
    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Long userid;
    /**
     * 评论
     */
    private String comment;
    /**
     * 回复用户id
     */
    @TableField(value = "replyUserId")
    private Long replyuserid;
    /**
     * 根节点评论id
     */
    @TableField(value = "rootId")
    private Long rootid;
    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;
    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 二级评论
     */
    @TableField(exist = false)
    private List<VideoComment> childList;

    @TableField(exist = false)
    private UserInfo userInfo;

    @TableField(exist = false)
    private UserInfo replyUserInfo;

}
